const aqcs = [
  "一、二级吊装作业已编制吊装作业方案，已经审查批准；吊装物体形状复杂、刚度小、长径比大、精密贵重，作业条件特殊的三级吊装作业，已编制吊装作业方案，已经审查批准（监护人）",
  "吊装场所如有含危险物料的设备、管道时，应制定详细吊装方案，并对设备、管道 采取有效防护措施，必要时停车，放空物料，置换后再进行吊装作业（监护人）",
  "作业人员已按规定佩戴个体防护装备（监护人）",
  "已对起重吊装设备、钢丝绳、揽风绳、链条、吊钩等各种机具进行检查，安全可靠（监护人）",
  "已明确各自分工、坚守岗位，并统一规定联络信号（监护人）",
  "将建筑物、构筑物作为锚点，应经所在单位管理部门审查核算并批准（监护人）",
  "吊装绳索、揽风绳、拖拉绳等不应与带电线路接触，并保持安全距离（监护人）",
  "不应利用管道、管架、电杆、机电设备等作吊装锚点（监护人）",
  "吊物捆扎坚固，未见绳打结、绳不齐现象，棱角吊物已采取衬垫措施（监护人）",
  "起重机安全装置灵活好用（监护人）",
  "吊装作业人员持有有效的法定资格证书（监护人）",
  "地下通信电（光）缆、局域网络电（光）缆、排水沟的盖板，承重吊装机械的负重量已确认，保护措施已落实（监护人）",
  "起吊物的质量（t）经确认，在吊装机械的承重范围内（监护人）",
  "在吊装高度的管线、电缆桥架已做好防护措施（监护人）",
  "作业现场围栏、警戒线、警告牌、夜间警示灯已按要求设置（监护人）",
  "作业高度和转臂范围内无架空线路（监护人）",
  "在爆炸危险场所内的作业，机动车排气管已装阻火器（监护人）",
  "露天作业，环境风力满足作业安全要求（监护人）",
  "其他相关特殊作业已办理相应安全作业票（监护人）",
];

let formOptions = [
  {
    label: "作业申请部门",
    optionItems: [],
    prop: "jobApplyCompany",
    type: "input",
    required: true,
  },
  {
    label: "作业单位",
    optionItems: [],
    prop: "jobCompany",
    type: "input",
    required: true,
  },
  {
    label: "作业申请时间",
    optionItems: [],
    prop: "jobApplyDate",
    type: "datetime",
    required: true,
  },
  {
    label: "吊装地点",
    optionItems: [],
    prop: "local",
    type: "input",
    required: true,
  },

  {
    label: "吊物质量(t)",
    optionItems: [],
    prop: "quality",
    type: "input",
    required: true,
    hz: "t",
  },

  {
    label: "作业级别",
    optionItems: [
      {
        value: "一级m >100t",
        text: "一级m >100t",
      },
      {
        value: "二级40t≦m≦100t",
        text: "二级40t≦m≦100t",
      },
      {
        value: "三级m<40t",
        text: "三级m<40t",
      },
    ],
    prop: "Grade",
    type: "radio",
    required: true,
  },
  {
    label: "吊装工具名称",
    optionItems: [],
    prop: "hoistingToolName",
    optionItems: [
      "汽车起重机",
      "轮胎起重机",
      "塔式起重机",
      "电动葫芦",
      "简易起重设备",
    ],
    type: "combox",
    required: true,
  },

  {
    label: "吊装作业人",
    optionItems: [],
    prop: "hoistingJobPeople",
    type: "zyry",
    required: true,
  },
  {
    label: "司索人",
    optionItems: [],
    prop: "riggerPeople",
    type: "zyry",
    required: true,
  },
  {
    label: "指挥员",
    optionItems: [],
    prop: "command",
    type: "zyry",
    required: true,
  },
  {
    label: "监护人",
    optionItems: [],
    prop: "custody",
    type: "zyry",
    required: true,
  },
  {
    label: "作业时间",
    optionItems: [],
    prop: "jobDate",
    type: "datetimerange",
    required: true,
  },
  {
    label: "吊装内容",
    optionItems: [],
    prop: "zynr",
    type: "input",
    required: true,
  },
  {
    label: "风险辨识结果",
    optionItems: [
      {
        value: "物体打击",
        text: "物体打击",
      },
      {
        value: "机械伤害",
        text: "机械伤害",
      },
      {
        value: "起重伤害",
        text: "起重伤害",
      },
      {
        value: "触电",
        text: "触电",
      },
      {
        value: "火灾",
        text: "火灾",
      },
      {
        value: "高处坠落",
        text: "高处坠落",
      },
      {
        value: "坍塌",
        text: "坍塌",
      },

      {
        value: "灼烫",
        text: "灼烫",
      },
      {
        value: "容器爆炸",
        text: "容器爆炸",
      },
      {
        value: "其他爆炸",
        text: "其他爆炸",
      },
      {
        value: "电磁辐射",
        text: "电磁辐射",
      },
      {
        value: "中毒窒息",
        text: "中毒窒息",
      },

      {
        value: "其他风险",
        text: "其他风险",
      },
    ],
    prop: "risk",
    type: "checkbox",
    required: false,
  },
];
aqcs.forEach((item, index) => {
  formOptions.push({
    label: `${index + 1}.${item}`,
    optionItems: [
      {
        value: "是",
        text: "涉及",
      },
      {
        value: "否",
        text: "不涉及",
      },
    ],
    prop: `yesOrNo${index + 1}`,
    type: "labelradio",
    required: false,
  });
  // formOptions.push({
  //   label: "电子签名",
  //   optionItems: [],
  //   type: "slot",
  //   // prop: `qianming${index + 1}`,
  //   prop: `qianming1`,
  // });
});
formOptions = [
  ...formOptions,
  // {
  //   label: "电子签名",
  //   optionItems: [],
  //   type: "slot",
  //   // prop: `qianming${index + 1}`,
  //   prop: `qianming1`,
  // },
  {
    label: "其他安全措施",
    optionItems: [],
    prop: "qtaqcs",
    type: "qtaqcs",
    multiple: true,
  },
  {
    label: "编制人",
    optionItems: [],
    prop: "bzr",
    type: "input",
    required: false,
  },
  {
    label: "安全措施电子签名",
    optionItems: [],
    prop: "qianming1",
    type: "slot",
    required: false,
  },
  {
    label: "安全交底人",
    optionItems: [],
    prop: "aqjdr",
    type: "slot",
    required: false,
  },
  {
    label: "接受交底人",
    optionItems: [],
    prop: "jsjdr",
    type: "slot",
    required: false,
  },
  // {
  //   label: "",
  //   optionItems: [],
  //   prop: "jsjdr2",
  //   type: "slot",
  //   required: false,
  // },
  // {
  //   label: "",
  //   optionItems: [],
  //   prop: "jsjdr3",
  //   type: "slot",
  //   required: false,
  // },
  //   let qianzhi = index === 0 ? null : "qianmingDt" + index;
  // if (index === 4) {
  //   qianzhi = ["yjqm4", "qianming1", "aqjdr"];
  // }
  {
    label: "作业指挥意见（签字）：  ",
    optionItems: [],
    type: "slot",
    prop: "yjqm1",
    qmDt: "qianmingDt1",
  },
  {
    label: "签名日期",
    optionItems: [],
    prop: "qianmingDt1",
    type: "datetime",
    required: false,
  },
  {
    label: "所在单位负责人（签字）：  ",
    optionItems: [],
    type: "slot",
    prop: "yjqm2",
    qmDt: "qianmingDt2",
    qianzhi: "yjqm1",
  },
  {
    label: "签名日期",
    optionItems: [],
    prop: "qianmingDt2",
    type: "datetime",
    required: false,
    qianzhi: "yjqm3",
  },
  {
    label: "安保部审核意见（二、三级吊装）（签字）：",
    optionItems: [],
    type: "slot",
    prop: "yjqm3",
    qmDt: "qianmingDt3",
    qianzhi: "yjqm2",
  },

  {
    label: "签名日期",
    optionItems: [],
    prop: "qianmingDt3",
    type: "datetime",
    required: false,
  },

  {
    label: "经理室审批意见（一级吊装）（签字）：",
    prop: "yjqm4",
    type: "slot",
    required: false,
    qmDt: "qianmingDt4",
    qianzhi: "yjqm3",
  },
  {
    label: "签名日期",
    optionItems: [],
    prop: "qianmingDt4",
    type: "datetime",
    required: false,
  },

  {
    label: "完工验收（签字）：",
    prop: "yjqm5",
    qmDt: "qianmingDt5",
    type: "slot",
    required: false,
    qianzhi: ["yjqm4", "qianming1", "aqjdr"],
  },
  {
    label: "签名日期",
    optionItems: [],
    prop: "qianmingDt5",
    type: "datetime",
    required: false,
  },
];
const yjList = [
  "所在单位意见(签名)",
  "所在单位（部门）意见（签名）",
  "有关水、电、汽、工艺、设备、消防、安全等部门会签意见（签名）：",
  "安保部审批意见（签名）： ",
  "完工验收",
];
const longLabelSlots = [
  "yesOrNo1",
  "yesOrNo2",
  "yesOrNo3",
  "yesOrNo4",
  "yesOrNo5",
  "yesOrNo6",
  "yesOrNo7",
  "yesOrNo8",
  "yesOrNo9",
  "yesOrNo10",
  "yesOrNo11",
  "yesOrNo12",
  "yesOrNo13",
  "yesOrNo14",
  "yesOrNo15",
  "yesOrNo16",
  "yesOrNo17",
  "yesOrNo18",
  "yesOrNo19",
];
const qianmingSlots = [
  "qianming1",
  "qianming2",
  "qianming3",
  "qianming4",
  "qianming5",
  "qianming6",
  "qianming7",
  "qianming8",
  "qianming9",
  "qianming10",
  "qianming11",
  "qianming12",
  "qianming13",
  "qianming14",
  "qianming15",
  "qianming16",
  "qianming17",
  "qianming18",
  "qianming19",
  "qianming20",
  "qianming21",
  "qianming22",
  "qianming23",
  "qianming24",
  "aqjdr",
  "jsjdr",
  "jsjdr2",
  "jsjdr3",
  "otherqm",
  "yjqm1",
  "yjqm2",
  "yjqm3",
  "yjqm4",
  "yjqm5",
  "yjqm6",
];
const emptys = [
  "qianming1",
  "yjqm1",
  "yjqm2",
  "yjqm3",
  "yjqm4",
  "yjqm5",
  "qianmingDt1",
  "qianmingDt2",
  "qianmingDt3",
  "qianmingDt4",
  "qianmingDt5",
  "aqjdr",
  "jsjdr",
  "otherqm",
  "jobDate",
  "glqtzyp",
  "jobApplyDate",
];
const options = {
  formOptions,
  longLabelSlots,
  qianmingSlots,
  emptys,
};
export default options;
